package com.bruan.d1_staticdemo;

public class Test {
    public static void main(String[] args) {
        //掌握static变量内容
        Student.name = "牛子";
        Student s1 = new Student();
        Student s2 = new Student();
        s1.name = "xxxx";
        s2.name = "ssss";
        System.out.println(s2.name);

        System.out.println(Student.name);
        //实例变量用对象访问
        s1.age=10;
        s2.age=15;


    }
}
